﻿///***************************************************************
/// 시  스  템 : Updms.Prj.Exe
/// 단위시스템 : PRJ
/// 계      층 : Execute Layer (Relation Transaction)
/// 프로그램명 : Prj1013m_RT
/// 파  일  명 : Prj1013m_RT.cs
/// 설      명 : 프로젝트업무구분
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2009-02-20 송시명   최초 작성
///***************************************************************
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;


namespace Updms.Prj.Exe
{
	[ComVisible(true)]
	[Transaction(TransactionOption.Required)]
	[JustInTimeActivation(true)]
	public class Prj1013m_RT : Base.AppFramework.RuleBase
	{
		public Prj1013m_RT()
		{
		}

		#region InsertProcess
		
		[AutoComplete]
		public int InsertProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Prj_Dac_UPDMS_PRJ_WORK_TYPE _dac = new Dac.Prj_Dac_UPDMS_PRJ_WORK_TYPE())
			{
				return _dac.Insert(lo_dp);
			}
		}
		
		#endregion

		#region UpdateProcess
		
		[AutoComplete]
		public int UpdateProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Prj_Dac_UPDMS_PRJ_WORK_TYPE _dac = new Dac.Prj_Dac_UPDMS_PRJ_WORK_TYPE())
			{
				return _dac.Update(lo_dp);
			}
		}
		
		#endregion

		#region DeleteProcess
		
		[AutoComplete]
		public int DeleteProcess(string ls_xml)
		{
			_exeTimeLog.Prepare();

			using (Dac.Prj_Dac_UPDMS_PRJ_WORK_TYPE _dac = new Dac.Prj_Dac_UPDMS_PRJ_WORK_TYPE())
			{
				return _dac.Delete(ls_xml);
			}
		}
		
		#endregion

	}
}
